<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function fnOnBack() {
	var url = '<?php echo url('BoDashboard', 'Welcome'); ?>';
	document.location.href = url;
}

function fnOnSubmit(form) {
	form.Save.disabled = true;
	if (form.title.value == '' ||
		form.link.value == '')
	{
		alert('<?php echo h(_T('ui_p_form_validation')); ?>');
		form.Save.disabled = false;
		return false;
	}

	return true;
}

// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—<?=$title?></div>
<div id="main_content">
  <form action="<?php echo $this->_url('uploadPhoto',array('catid' => $catid,'access' => $_REQUEST['access'])); ?>" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return fnOnSubmit(this);">
	<table width="100%" border="0" cellspacing="2" cellpadding="2">
		<tr>
		  <td width="17%" class="title">*标题</td>
		  <td><input type="text" name="title" id="title" class="wp80" value="<?php echo $article['title']; ?>"/></td>
	    </tr>
		<tr>
		  <td class="title">资讯图片</td>
		  <td><?php if($article['image_src']): ?><img src="<?php echo LEADTONE_DIR;?>/Upload/<?php echo $article['image_src']; ?>" <?php if($catid==$this->catid){?>width="600"<?php } ?>><br /><?php endif; ?><input name="postfile" type="file" size="40" /></td>
	    </tr>
	    <tr>
		  <td valign="top" class="title">*资讯链接</td>
		  <td><input name="link" id="link" type="text" class="wp80" value="<?php echo $article['link']; ?>"/></td>
		</tr>
		<tr>
		  <td valign="top" class="title">排序</td>
		  <td><input style="width:20px;" name="hot" id="hot" type="text" value="<?php echo $article['hot']; ?>"/>只能填0-9的正整数，值越大排名越靠前</td>
		</tr>
		<tr>
		  <td align="right" colspan="2" style="padding-right:150px;">
              <button type="submit" name="Save" id="Save" class="btnA">发布</button>&nbsp;&nbsp;
              <input name="Cancel" type="button" id="Cancel" value="<?php echo h(_T('ui_g_cancel')); ?>" onclick="fnOnBack();" />
          </td>
	    </tr>
		<tr>
		  <td>&nbsp;</td>
		  <td></td>
		</tr>
	</table>
	<input name="<?php echo $pk; ?>" type="hidden" id="<?php echo $pk; ?>" value="<?php echo $article[$pk]; ?>"/>
  </form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
